package com.runmi.webchat.aftersale.dbcore.mapper;


import com.runmi.webchat.aftersale.dbcore.entity.User;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper   extends Mapper<User> {
	public List<Map> getUserByName(
			@Param("userName")String userName, 
			@Param("realName")String realName, 
			@Param("roleId")Integer roleId);
	
	public List<Map> getScmUserByName(
			@Param("userName")String userName, 
			@Param("realName")String realName, 
			@Param("roleId")Integer roleId);
	
	public List<User> getUserByRoleId(@Param("roleId")Integer roleId);
	
	public User getUserInfoByUserName(@Param("userName")String userName);
	
	/**
	 * 根据职位名称查询用户列表(用于产品经理列表)
	 * @param jobName
	 * @return
	 */
	public List<User> getUserInfoByJobName(@Param("jobName")String jobName);
}